home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Reference Guide / C-C++ Interactive Reference Guide.iso / c_ref / csource3 / 121_01 / more.doc < prev    next >
Encoding:
Text File  |  1985-08-21  |  2.1 KB  |  68 lines

  1.  
  2.  
  3.      MORE (1)                  BDS C Users' Group                  MORE (1)
  4.  
  5.  
  6.  
  7.  
  8.      NAME   
  9.      NAME 
  10.           more - list file(s) to terminal 
  11.  
  12.  
  13.      SYNOPSIS   
  14.      SYNOPSIS 
  15.           more                   
  16.           more [filedesc] ...  
  17.  
  18.  
  19.      DESCRIPTION   
  20.      DESCRIPTION 
  21.           ____                                                          
  22.           More is a program which lists one or more files, a page (or 
  23.           a user-selectable amount) at a time, on the console.  The 
  24.           names of the files to be listed are supplied as arguments on 
  25.           the command line; if no arguments are given, the user is 
  26.           prompted for filename(s).  
  27.           For each file, the first page's worth of lines is listed and 
  28.           then the user is prompted with "more?  ".  At this point, 
  29.           the following replies are accepted: 
  30.  
  31.  
  32.                 N            stop listing file, go on to next
  33.           Y or (newline)     list next page
  34.                 S            list next half page
  35.                 0            go back to start of file, and list first page
  36.                nnn           list next nnn lines
  37.               -nnn           back up nnn lines, then list a page
  38.  
  39.  
  40.      CAVEATS   
  41.      CAVEATS 
  42.           This program was tested with v1.50 of the BDS C compiler 
  43.           under CP/M 2.2.  It should work with other versions of BDS C 
  44.           and CP/M, but has not been tested.  
  45.  
  46.  
  47.      EXAMPLES   
  48.      EXAMPLES 
  49.           more abc.c xyz.dat    lists files abc.c and xyz.dat in turn
  50.           more                  prompts for files to be listed
  51.  
  52.  
  53.      BUGS   
  54.      BUGS 
  55.           Backing up nnn lines is only very approximate (it actually 
  56.           backs up approximately nnn/3 sectors).  The only excuse for 
  57.           this is to prevent the overhead of going back to the 
  58.           beginning of a possibly large file and rereading most of 
  59.           it.  
  60.  
  61.  
  62.      NOTES   
  63.      NOTES 
  64.           Requires fseek.c for link.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.                                       -1-
  85.  
  86.  
  87.             go back to start of file, and list first page
  88.                nnn           list